#ifndef __FUN_TASK_H
#define __FUN_TASK_H

#include "gd32e23x.h"
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
#include "main.h"
#include "app_task.h"
#include "queue.h"
#include "semphr.h"
#include "bsp_gpio.h"
#include "app_task.h"
#include "output_task.h"
#include "bsp_adc.h"

#define SYS_RUN_TASK_TIME       18000 
#define SYS_SLEEP_HALT_TIME     3000
#define SYS_SLEEP_LOW_POWER_TIME    50
#define SYS_TIME_SET_TIMEOUT_TIME   50

#define BAT_OFFSET      80
extern uint8_t Set_time_fail;
extern uint8_t low_power_state;
QueueHandle_t fun_queue_handle_get(void);

void fun_task_init(void);
void fun_task_deinit(void);
int fun_led_packet(void *data);
#endif //__FUN_TASK_H